
#include <iostream>

using namespace std;

int main()
{
	int count = 0;
	int n;
	while(true){
		cin>>n;
		count ++;

		if( n==250 )
			break;
	}
	cout<<count<<endl;
	return 0;
}
